package cn.wgx.modules.sys.entity;

import cn.wgx.modules.base.entity.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
 * Description:
 * 
 *
 * @author 
 */
public class SysRoleUser extends BaseEntity implements Serializable {
    /**
     *
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    private Integer role_user_id;

    /**
     *
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    private Integer user_id;

    /**
     *
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    private Integer role_id;

    /**
     *
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    private Date createDate;

    /**
     *
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    private Integer createUserId;

    /**
     *
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    private Date updateDate;

    /**
     *
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    private Integer updateUserId;

    /**
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method returns the value of the database column education..sys_role_user.role_user_id
     *
     * @return the value of education..sys_role_user.role_user_id
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public Integer getRole_user_id() {
        return role_user_id;
    }

    /**
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public SysRoleUser withRole_user_id(Integer role_user_id) {
        this.setRole_user_id(role_user_id);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_role_user.role_user_id
     *
     * @param role_user_id the value for education..sys_role_user.role_user_id
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public void setRole_user_id(Integer role_user_id) {
        this.role_user_id = role_user_id;
    }

    /**
     * This method returns the value of the database column education..sys_role_user.user_id
     *
     * @return the value of education..sys_role_user.user_id
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public Integer getUser_id() {
        return user_id;
    }

    /**
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public SysRoleUser withUser_id(Integer user_id) {
        this.setUser_id(user_id);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_role_user.user_id
     *
     * @param user_id the value for education..sys_role_user.user_id
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    /**
     * This method returns the value of the database column education..sys_role_user.role_id
     *
     * @return the value of education..sys_role_user.role_id
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public Integer getRole_id() {
        return role_id;
    }

    /**
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public SysRoleUser withRole_id(Integer role_id) {
        this.setRole_id(role_id);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_role_user.role_id
     *
     * @param role_id the value for education..sys_role_user.role_id
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public void setRole_id(Integer role_id) {
        this.role_id = role_id;
    }

    /**
     * This method returns the value of the database column education..sys_role_user.createDate
     *
     * @return the value of education..sys_role_user.createDate
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public SysRoleUser withCreateDate(Date createDate) {
        this.setCreateDate(createDate);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_role_user.createDate
     *
     * @param createDate the value for education..sys_role_user.createDate
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * This method returns the value of the database column education..sys_role_user.createUserId
     *
     * @return the value of education..sys_role_user.createUserId
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public Integer getCreateUserId() {
        return createUserId;
    }

    /**
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public SysRoleUser withCreateUserId(Integer createUserId) {
        this.setCreateUserId(createUserId);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_role_user.createUserId
     *
     * @param createUserId the value for education..sys_role_user.createUserId
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    /**
     * This method returns the value of the database column education..sys_role_user.updateDate
     *
     * @return the value of education..sys_role_user.updateDate
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public SysRoleUser withUpdateDate(Date updateDate) {
        this.setUpdateDate(updateDate);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_role_user.updateDate
     *
     * @param updateDate the value for education..sys_role_user.updateDate
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    /**
     * This method returns the value of the database column education..sys_role_user.updateUserId
     *
     * @return the value of education..sys_role_user.updateUserId
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public Integer getUpdateUserId() {
        return updateUserId;
    }

    /**
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public SysRoleUser withUpdateUserId(Integer updateUserId) {
        this.setUpdateUserId(updateUserId);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_role_user.updateUserId
     *
     * @param updateUserId the value for education..sys_role_user.updateUserId
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    public void setUpdateUserId(Integer updateUserId) {
        this.updateUserId = updateUserId;
    }

    /**
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", role_user_id=").append(role_user_id);
        sb.append(", user_id=").append(user_id);
        sb.append(", role_id=").append(role_id);
        sb.append(", createDate=").append(createDate);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", updateDate=").append(updateDate);
        sb.append(", updateUserId=").append(updateUserId);
        sb.append("]");
        return sb.toString();
    }

    /**
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysRoleUser other = (SysRoleUser) that;
        return (this.getRole_user_id() == null ? other.getRole_user_id() == null : this.getRole_user_id().equals(other.getRole_user_id()))
            && (this.getUser_id() == null ? other.getUser_id() == null : this.getUser_id().equals(other.getUser_id()))
            && (this.getRole_id() == null ? other.getRole_id() == null : this.getRole_id().equals(other.getRole_id()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()))
            && (this.getUpdateUserId() == null ? other.getUpdateUserId() == null : this.getUpdateUserId().equals(other.getUpdateUserId()));
    }

    /**
     *
     * @mbg.generated Wed Feb 19 04:40:32 CST 2020
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRole_user_id() == null) ? 0 : getRole_user_id().hashCode());
        result = prime * result + ((getUser_id() == null) ? 0 : getUser_id().hashCode());
        result = prime * result + ((getRole_id() == null) ? 0 : getRole_id().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        result = prime * result + ((getUpdateUserId() == null) ? 0 : getUpdateUserId().hashCode());
        return result;
    }
}